package com.sangeng.controller;

import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Date;

@Controller
public class ConverterController {


    @RequestMapping("/testConverter")
    public String testConverter(Boolean success) {
        System.out.println("testConverter");
        System.out.println(success);
        return "/success.jsp";
    }


    @RequestMapping("/testDateConverter")
    public String testDateConverter(Date birthday) {
        System.out.println("testDateConverter");
        System.out.println(birthday);
        return "/success.jsp";
    }
}
